package com.blockmeta.bbs.immodule.corebean;

import android.content.Context;

public interface IFileHttpService {

    void uploadImImage(Context mContext, String url, IMFileUploadCallBack callBack);

    void uploadFile(Context mContext, String url, IMFileUploadCallBack callBack);

    void downLoadFile(String filePath, String fileName, IMFileDownLoadCallBack imFileDownLoadCallBack);

    int getFileProgress(String filePath);

    interface IMFileUploadCallBack {
        void fail(String msg);

        void progress(int progress);

        void success(String fileUrl, String fileName, String fileParam);
    }

    interface IMFileDownLoadCallBack {
        void fail(String msg);

        void progress(int progress);

        void success(String fileUrl, String filePath);
    }
}
